﻿<sticky:StickyWindowBase xmlns:sticky="clr-namespace:Squiggle.UI.StickyWindow"
                     x:Class="Squiggle.UI.Windows.HistoryViewer"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controls="clr-namespace:Squiggle.UI.Controls"
        Icon="/Squiggle;component/Images/Chat.ico" FocusManager.FocusedElement="{Binding ElementName=chatHistory}"
        Title="History Viewer" Height="300" Width="586" WindowStartupLocation="CenterOwner" KeyDown="StickyWindow_KeyDown">
    <sticky:StickyWindowBase.Resources>
        <Style TargetType="DatePicker">
            <Setter Property="Width" Value="200" />
            <Setter Property="HorizontalAlignment" Value="Left" />
        </Style>
    </sticky:StickyWindowBase.Resources>
    <Grid>
        <TabControl>
            <TabItem Header="{StaticResource HistoryViewer_ChatHistoryTab}">
                <controls:ChatHistoryViewer x:Name="chatHistory" />
            </TabItem>
            <TabItem Header="{StaticResource HistoryViewer_StatusHistoryTab}">
                <controls:StatusHistoryViewer />
            </TabItem>
        </TabControl>
    </Grid>
</sticky:StickyWindowBase>
